package com.dundun.controller;

import com.dundun.common.utils.Ajax;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wq
 */
@Api(tags = "示例")
@RequestMapping("/hello")
@RestController
public class Hello {

    @ApiOperation(value = "hello world")
    @GetMapping("/hello")
    public String hello() {
        return "Hello!!啊啊啊啊1111";
    }

    @ApiOperation(value = "返回对象")
    @GetMapping("/res")
    public Ajax res() {
        return Ajax.success().put("data","the return data...");
    }

}
